package com.mysite.springcloud.demo.api.facade;

import com.mysite.springcloud.demo.api.vo.UserVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "service-user")
public interface UserFacade {

    @RequestMapping(value = "/user/getByUsername", method = RequestMethod.GET)
    UserVo getUserByUsername(@RequestParam String username);
}
